import {Routes, RouterModule} from '@angular/router';
import {ModuleWithProviders} from '@angular/core';
import {UserComponent} from './user/user.component';
import {TopUpComponent} from './top-up/top-up.component';
import {UserInfoEditComponent} from './user/user-info-edit/user-info-edit.component';
import {TopUpMoneyComponent} from './user/top-up-money/top-up-money.component';
import {PaySuccessComponent} from "./user/pay-success/pay-success.component";

export const routes: Routes = [
  {
    path: 'user',
    component: UserComponent,
    children: []
  },
  {
    path: 'top-up',
    component: TopUpComponent,
    children: []
  },
  {
    path: 'user/user-info-edit',
    component: UserInfoEditComponent,
    children: []
  },
  {
    path: 'user/top-up-money',
    component: TopUpMoneyComponent,
    children: []
  },
  {
    path: 'pay-success',
    component: PaySuccessComponent,
    children: []
  },
];

export const routing: ModuleWithProviders = RouterModule.forChild(routes);
